package com.zheng.umbrella.dao.model;

import java.io.Serializable;
import java.util.Date;

public class UmbrellaHardwareMqttcommandLog implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 接收时间
     *
     * @mbg.generated
     */
    private Date reqTime;

    /**
     * 请求机器码
     *
     * @mbg.generated
     */
    private String reqMachineCode;

    /**
     * 请求操作类型
     *
     * @mbg.generated
     */
    private String reqCommand;

    /**
     * 请求操作结果
     *
     * @mbg.generated
     */
    private Integer reqCode;

    /**
     * 请求操作结果描述
     *
     * @mbg.generated
     */
    private String reqMessage;

    /**
     * 接收数据
     *
     * @mbg.generated
     */
    private String reqData;

    /**
     * 处理完成时间
     *
     * @mbg.generated
     */
    private Date resTime;

    /**
     * 响应机器码
     *
     * @mbg.generated
     */
    private String resMachineCode;

    /**
     * 响应操作类型
     *
     * @mbg.generated
     */
    private String resCommand;

    /**
     * 响应操作结果
     *
     * @mbg.generated
     */
    private Integer resCode;

    /**
     * 响应操作结果描述
     *
     * @mbg.generated
     */
    private String resMessage;

    /**
     * 响应数据
     *
     * @mbg.generated
     */
    private String resData;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getReqTime() {
        return reqTime;
    }

    public void setReqTime(Date reqTime) {
        this.reqTime = reqTime;
    }

    public String getReqMachineCode() {
        return reqMachineCode;
    }

    public void setReqMachineCode(String reqMachineCode) {
        this.reqMachineCode = reqMachineCode;
    }

    public String getReqCommand() {
        return reqCommand;
    }

    public void setReqCommand(String reqCommand) {
        this.reqCommand = reqCommand;
    }

    public Integer getReqCode() {
        return reqCode;
    }

    public void setReqCode(Integer reqCode) {
        this.reqCode = reqCode;
    }

    public String getReqMessage() {
        return reqMessage;
    }

    public void setReqMessage(String reqMessage) {
        this.reqMessage = reqMessage;
    }

    public String getReqData() {
        return reqData;
    }

    public void setReqData(String reqData) {
        this.reqData = reqData;
    }

    public Date getResTime() {
        return resTime;
    }

    public void setResTime(Date resTime) {
        this.resTime = resTime;
    }

    public String getResMachineCode() {
        return resMachineCode;
    }

    public void setResMachineCode(String resMachineCode) {
        this.resMachineCode = resMachineCode;
    }

    public String getResCommand() {
        return resCommand;
    }

    public void setResCommand(String resCommand) {
        this.resCommand = resCommand;
    }

    public Integer getResCode() {
        return resCode;
    }

    public void setResCode(Integer resCode) {
        this.resCode = resCode;
    }

    public String getResMessage() {
        return resMessage;
    }

    public void setResMessage(String resMessage) {
        this.resMessage = resMessage;
    }

    public String getResData() {
        return resData;
    }

    public void setResData(String resData) {
        this.resData = resData;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", reqTime=").append(reqTime);
        sb.append(", reqMachineCode=").append(reqMachineCode);
        sb.append(", reqCommand=").append(reqCommand);
        sb.append(", reqCode=").append(reqCode);
        sb.append(", reqMessage=").append(reqMessage);
        sb.append(", reqData=").append(reqData);
        sb.append(", resTime=").append(resTime);
        sb.append(", resMachineCode=").append(resMachineCode);
        sb.append(", resCommand=").append(resCommand);
        sb.append(", resCode=").append(resCode);
        sb.append(", resMessage=").append(resMessage);
        sb.append(", resData=").append(resData);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UmbrellaHardwareMqttcommandLog other = (UmbrellaHardwareMqttcommandLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getReqTime() == null ? other.getReqTime() == null : this.getReqTime().equals(other.getReqTime()))
            && (this.getReqMachineCode() == null ? other.getReqMachineCode() == null : this.getReqMachineCode().equals(other.getReqMachineCode()))
            && (this.getReqCommand() == null ? other.getReqCommand() == null : this.getReqCommand().equals(other.getReqCommand()))
            && (this.getReqCode() == null ? other.getReqCode() == null : this.getReqCode().equals(other.getReqCode()))
            && (this.getReqMessage() == null ? other.getReqMessage() == null : this.getReqMessage().equals(other.getReqMessage()))
            && (this.getReqData() == null ? other.getReqData() == null : this.getReqData().equals(other.getReqData()))
            && (this.getResTime() == null ? other.getResTime() == null : this.getResTime().equals(other.getResTime()))
            && (this.getResMachineCode() == null ? other.getResMachineCode() == null : this.getResMachineCode().equals(other.getResMachineCode()))
            && (this.getResCommand() == null ? other.getResCommand() == null : this.getResCommand().equals(other.getResCommand()))
            && (this.getResCode() == null ? other.getResCode() == null : this.getResCode().equals(other.getResCode()))
            && (this.getResMessage() == null ? other.getResMessage() == null : this.getResMessage().equals(other.getResMessage()))
            && (this.getResData() == null ? other.getResData() == null : this.getResData().equals(other.getResData()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getReqTime() == null) ? 0 : getReqTime().hashCode());
        result = prime * result + ((getReqMachineCode() == null) ? 0 : getReqMachineCode().hashCode());
        result = prime * result + ((getReqCommand() == null) ? 0 : getReqCommand().hashCode());
        result = prime * result + ((getReqCode() == null) ? 0 : getReqCode().hashCode());
        result = prime * result + ((getReqMessage() == null) ? 0 : getReqMessage().hashCode());
        result = prime * result + ((getReqData() == null) ? 0 : getReqData().hashCode());
        result = prime * result + ((getResTime() == null) ? 0 : getResTime().hashCode());
        result = prime * result + ((getResMachineCode() == null) ? 0 : getResMachineCode().hashCode());
        result = prime * result + ((getResCommand() == null) ? 0 : getResCommand().hashCode());
        result = prime * result + ((getResCode() == null) ? 0 : getResCode().hashCode());
        result = prime * result + ((getResMessage() == null) ? 0 : getResMessage().hashCode());
        result = prime * result + ((getResData() == null) ? 0 : getResData().hashCode());
        return result;
    }
}